package org.bright.service.Impl;

import org.bright.dao.Impl.UserMySqlDaoImpl;
import org.bright.dao.Impl.UserOracleDaoImpl;
import org.bright.dao.UserDao;
import org.bright.service.UserService;

import javax.xml.crypto.Data;
import java.util.Date;

public class UserServiceImpl implements UserService {
    UserDao userMySqlDao;
    UserDao userOracleDao;

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    private int age;
    private String name;
    private Data data;


    public void sayHello() {
        userMySqlDao.sayHello();
        userOracleDao.sayHello();
        System.out.println(name+"--"+age);
    }

    public void setUserOracleDao(UserOracleDaoImpl userOracleDao) {
        this.userOracleDao = userOracleDao;
    }

    public void setUserMySqlDao(UserMySqlDaoImpl userMySqlDao) {
        this.userMySqlDao = userMySqlDao;
    }
}
